﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="Gv_one" runat="server" OnRowCancelingEdit="Gv_one_RowCancelingEdit" OnRowEditing="Gv_one_RowEditing" OnRowDeleting="Gv_one_RowDeleting" OnRowUpdating="Gv_one_RowUpdating" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" />
            <asp:BoundField DataField="Title" HeaderText="Title" />
            <asp:BoundField DataField="Content" HeaderText="Content" />
            <asp:BoundField DataField="Author" HeaderText="Author" />
            <asp:BoundField DataField="Remarks" HeaderText="Remarks" />

            <asp:CommandField HeaderText="操作" ButtonType="Button" ShowDeleteButton="True" ShowEditButton="True" />
            
        </Columns>
    </asp:GridView>
    <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" />

</asp:Content>
